package com.rjh.base.io.bytestream.inputStream;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileInputStreamDemo {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = null;
        try {
            fis = new FileInputStream("E:\\testDemo.txt");
            int read ;
            while ((read = fis.read())!=-1){
                System.out.print((char) read);
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }finally {
            fis.close();
        }
    }
}
